package com.aia.ilp.web;

import org.apache.log4j.Logger;

import com.aia.ilp.service.MainService;
import com.cfh.domain.Config;
import com.opensymphony.xwork2.ActionSupport;

public class NewsitemAction extends ActionSupport{
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(NewsitemAction.class);

	private static final long serialVersionUID = 1L;
	private MainService mainService;
	private String id;
	private Config onenews;
	/***
	 * nouse
	 */
	public String execute() {
		if (logger.isDebugEnabled()) {
			logger.debug("execute() - start"); //$NON-NLS-1$
		}
		mainService.selectOneNews(this);

		if (logger.isDebugEnabled()) {
			logger.debug("execute() - end"); //$NON-NLS-1$
		}
		return SUCCESS;
	}


	public void setMainService(MainService mainService) {
		this.mainService = mainService;
	}

	public MainService getMainService() {
		return mainService;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getId() {
		return id;
	}


	public void setOnenews(Config onenews) {
		this.onenews = onenews;
	}


	public Config getOnenews() {
		return onenews;
	}




}
